package com.example.oms.vo;


import com.example.oms.entity.Prescriptions;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PrescriptionAndMedListVo {
    private int id;
    private int doctorId;
    private int patientId;
    private String status;
    private Date time;
    private String remarks;
    private int diagRecordId;
    private List<MedVo> medsList;
    public void setPres(Prescriptions prescription) {
        this.id = prescription.getId();
        this.doctorId = prescription.getDoctorId();
        this.patientId = prescription.getPatientId();
        this.status = prescription.getStatus();
        this.time = prescription.getTime();
        this.remarks = prescription.getRemarks();
        this.diagRecordId = prescription.getDiagRecordId();
    }
}
